#include <algorithm>
#include <iostream>
#include <vector>

int main()
{
    std::vector<int> number{1, 2, 3, 4 ,5 ,6};
    for_each(number.begin(), number.end(), [](int a){std::cout << a << std::endl;});
    return 0;
}